#ifndef M_LEVEL_H_
#define M_LEVEL_H_

namespace bitlog
{
    class LogLevel{
        public:
        enum class value{
            DEBUG,
            INFO,
            WARNING,
            ERROR,
            FATAL,
            OFF
        };
        static const char* tostring(LogLevel::value l)
        {
            switch(l)
            {
                case LogLevel::value::DEBUG: return "DEBUG";
                case LogLevel::value::INFO: return "INFO";
                case LogLevel::value::WARNING: return "WARNING";
                case LogLevel::value::ERROR: return "ERROR";
                case LogLevel::value::FATAL: return "FATAL";
                case LogLevel::value::OFF: return "OFF";
            }
            return "UNKNOWN";
        }
    };
}


#endif